import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/drama_main_search_entity.g.dart';
import 'dart:convert';
export 'package:flutter_taotaoshipin/generated/json/drama_main_search_entity.g.dart';

@JsonSerializable()
class DramaMainSearchEntity {
	int? id = 0;
	int? type = 0;
	@JSONField(name: "type_name")
	String? typeName = '';
	String? title = '';
	String? cover = '';
	@JSONField(name: "thumb_cover")
	String? thumbCover = '';
	String? desc = '';
	@JSONField(name: "all_ep")
	int? allEp = 0;
	int? sort = 0;
	int? subscript = 0;
	@JSONField(name: "subscript_path")
	String? subscriptPath = '';
	@JSONField(name: "is_self")
	int? isSelf = 0;

	DramaMainSearchEntity();

	factory DramaMainSearchEntity.fromJson(Map<String, dynamic> json) => $DramaMainSearchEntityFromJson(json);

	Map<String, dynamic> toJson() => $DramaMainSearchEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}